package com.yj;

import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableSchedulerLock(defaultLockAtMostFor = "3m")
public class Application {
    public static void main(String[] args) {
        System.setProperty("server.port", "0");// 设置 Tomcat 随机端口
        SpringApplication.run(Application.class, args);
    }
}
